/*####################################################################################
  CLASS : qDojo.dijix.Toaster
  ============================
  - Rounded container using CSS.
  - Thanks to - http://www.generateit.net/css-corner/ 
  ####################################################################################*/

dojo.provide("qDojo.dijix.CssRounded");

dojo.require("dijit._Widget");
dojo.require("dijit._Templated");

dojo.declare("qDojo.dijix.CssRounded", [dijit._Widget, dijit._Templated], {

	templatePath: dojo.moduleUrl("qDojo.dijix", "template/CssRounded.html"),
	
	outerBgColor:"transparent", 
	innerBgColor:"#FDFDFD",
	borderColor	:"#CFCFCF", 
	content: "",	
	postCreate: function() {
		this.inherited(arguments);										
		//this.containerNode.style.cssText = this.mainNode.style.cssText;
		//this.containerNode.style.height = this.mainNode.style.height;
		//this.containerNode.style.width = this.mainNode.style.width - 2;
		this.mainNode.style.background = this.outerBgColor;								
		this.topNode.style.backgroundColor = this.outerBgColor;						
		this.B2TopNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;
		this.B3TopNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;
		this.B4TopNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;		
		this.B2BttNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;
		this.B3BttNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;
		this.B4BttNode.style.cssText = "background-color:"+this.innerBgColor+";border-left-color:"+this.borderColor+";border-right-color:"+this.borderColor;		
		this.B1TopNode.style.cssText = "background-color:"+this.borderColor;
		this.B1BttNode.style.cssText = "background-color:"+this.borderColor;			
		this.containerNode.style.cssText = "background-color:" +this.innerBgColor+";border-color:"+this.borderColor;
		if( this.content )
			this.containerNode.innerHTML = this.content;
			
	}
});